# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=qt6ct
pkgver=0.5
pkgrel=0
pkgdesc="Qt6 configuration tool"
url="https://github.com/trialuser02/qt6ct/"
arch="all"
license="BSD-2-Clause"
options="!check" # no test suite
makedepends="cmake qt6-qtbase-dev qt6-qttools-dev"
source="https://github.com/trialuser02/qt6ct/releases/download/$pkgver/qt6ct-$pkgver.tar.xz"

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=MinSizeRel
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
284c7d72c55159a30a8fb2b7338fea5dd0863c0f64b8680c992c3457b03ac9a4066ab63c8b29fe6ba0a33b0978b5e07e407c9f6edfb7eea111660e37c61ec37f  qt6ct-0.5.tar.xz
"
